import { Component, OnInit, Input, Output, EventEmitter } from "@angular/core";
import { StoreService } from "../store.service";
import { DataService } from "../data.service";
import { QueryPackage } from "../classes";

@Component({
  selector: "app-modelinfo",
  templateUrl: "./modelinfo.component.html",
  styleUrls: ["./modelinfo.component.less"],
})
export class ModelinfoComponent implements OnInit {
  constructor(public store: StoreService, public ds: DataService) {}

  ngOnInit() {}
  @Input() item: QueryPackage = undefined;
  @Output("onitemChanged") itemChanged: EventEmitter<
    QueryPackage
  > = new EventEmitter<QueryPackage>();
  public onitemChanged() {
    this.itemChanged.emit(this.item);
  }
}
